﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.Client.Entities;

namespace PPI.Entities
{
    public class EReport
    {
        private ReportsEnum m_ReportsType;
        private string m_fileName;
        private string m_title;
        private string m_datasource;
        private bool m_hasManyDatasources;
        private List<string> m_otherDatasources;
        private bool hasParameters;


        public EReport(ReportsEnum reportsType, string fileName, string title, string datasource)
        {
            this.m_ReportsType = reportsType;
            this.m_fileName = fileName;
            this.m_title = title;
            this.m_datasource = datasource;
            m_hasManyDatasources = false;
            m_otherDatasources = new List<string>();
        }
        
        public EReport(ReportsEnum reportsType, string fileName, string title, string datasource,bool hasManyDatasources)
        :this(reportsType,fileName,title,datasource)
        {
            m_hasManyDatasources = hasManyDatasources;
        }


        public ReportsEnum ReportsType
        {
            get { return m_ReportsType; }
        }

        public string FileName
        {
            get { return m_fileName; }
        }

        public string Title
        {
            get { return m_title; }
        }

        public string Datasource
        {
            get { return m_datasource; }
        }

        public bool HasManyDatasources
        {
            get { return m_hasManyDatasources; }
        }

        public List<string> OtherDatasources
        {
            get { return m_otherDatasources; }
            set { m_otherDatasources = value; }
        }

        public bool HasParameters
        {
            get { return hasParameters; }
            set { hasParameters = value; }
        }
    }
}
